import Layout from '@/layout'

export default {
  path: '/material',
  component: Layout,
  redirect: '/material/list',
  name: 'Material',
  meta: { title: '素材库', icon: 'message', noCache: true },
  children: [
    {
      path: 'create',
      name: 'MaterialCreate',
      component: () => import('@/views/material/create'),
      meta: { title: '添加', icon: 'star', noCache: true }
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/material/edit'),
      meta: { title: '编辑', noCache: true },
      hidden: true
    },
    {
      path: 'list',
      name: 'MaterialList',
      component: () => import('@/views/material/list'),
      meta: { title: '列表', icon: 'star', noCache: true }
    }
  ]
}
